Diverging schemes topic

Diverging color schemes are available as continuous interpolators (often used with ScaleSequential) and as discrete schemes (often used with ScaleOrdinal).

Each discrete scheme, such as schemeBrBG, is represented as an list of lists of hexadecimal color strings. The kth element of this list contains the color scheme of size k; for example, schemeBrBG[9] contains an list of nine strings representing the nine colors of the brown-blue-green diverging color scheme. Diverging color schemes support a size k ranging from 3 to 11.

To create a diverging continuous color scale using the PiYG color scheme:

final color = ScaleSequential(interpolator: interpolatePiYG);

To create a diverging discrete nine-color scale using the PiYG color scheme:

final color = ScaleOrdinal(range: schemePiYG[9]);

Properties

schemeBrBG List<List<String>?> Diverging schemes
The “BrBG” discrete diverging color scheme of size k in 3–11.
final
schemeBrBG List<List<String>?> Diverging schemes
The “BrBG” discrete diverging color scheme of size k in 3–11.
final
schemeBrBG List<List<String>?> Diverging schemes
The “BrBG” discrete diverging color scheme of size k in 3–11.
final
schemePiYG List<List<String>?> Diverging schemes
The “PiYG” discrete diverging color scheme of size k in 3–11.
final
schemePiYG List<List<String>?> Diverging schemes
The “PiYG” discrete diverging color scheme of size k in 3–11.
final
schemePiYG List<List<String>?> Diverging schemes
The “PiYG” discrete diverging color scheme of size k in 3–11.
final
schemePRGn List<List<String>?> Diverging schemes
The “PRGn” discrete diverging color scheme of size k in 3–11.
final
schemePRGn List<List<String>?> Diverging schemes
The “PRGn” discrete diverging color scheme of size k in 3–11.
final
schemePRGn List<List<String>?> Diverging schemes
The “PRGn” discrete diverging color scheme of size k in 3–11.
final
schemePuOr List<List<String>?> Diverging schemes
The “PuOr” discrete diverging color scheme of size k in 3–11.
final
schemePuOr List<List<String>?> Diverging schemes
The “PuOr” discrete diverging color scheme of size k in 3–11.
final
schemePuOr List<List<String>?> Diverging schemes
The “PuOr” discrete diverging color scheme of size k in 3–11.
final
schemeRdBu List<List<String>?> Diverging schemes
The “RdBu” discrete diverging color scheme of size k in 3–11.
final
schemeRdBu List<List<String>?> Diverging schemes
The “RdBu” discrete diverging color scheme of size k in 3–11.
final
schemeRdBu List<List<String>?> Diverging schemes
The “RdBu” discrete diverging color scheme of size k in 3–11.
final
schemeRdGy List<List<String>?> Diverging schemes
The “RdGy” discrete diverging color scheme of size k in 3–11.
final
schemeRdGy List<List<String>?> Diverging schemes
The “RdGy” discrete diverging color scheme of size k in 3–11.
final
schemeRdGy List<List<String>?> Diverging schemes
The “RdGy” discrete diverging color scheme of size k in 3–11.
final
schemeRdYlBu List<List<String>?> Diverging schemes
The “RdYlBu” discrete diverging color scheme of size k in 3–11.
final
schemeRdYlBu List<List<String>?> Diverging schemes
The “RdYlBu” discrete diverging color scheme of size k in 3–11.
final
schemeRdYlBu List<List<String>?> Diverging schemes
The “RdYlBu” discrete diverging color scheme of size k in 3–11.
final
schemeRdYlGn List<List<String>?> Diverging schemes
The “RdYlGn” discrete diverging color scheme of size k in 3–11.
final
schemeRdYlGn List<List<String>?> Diverging schemes
The “RdYlGn” discrete diverging color scheme of size k in 3–11.
final
schemeRdYlGn List<List<String>?> Diverging schemes
The “RdYlGn” discrete diverging color scheme of size k in 3–11.
final
schemeSpectral List<List<String>?> Diverging schemes
The “Spectral” discrete diverging color scheme of size k in 3–11.
final
schemeSpectral List<List<String>?> Diverging schemes
The “Spectral” discrete diverging color scheme of size k in 3–11.
final
schemeSpectral List<List<String>?> Diverging schemes
The “Spectral” discrete diverging color scheme of size k in 3–11.
final

Functions

interpolateBrBG(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “BrBG” diverging color scheme represented as an RGB string.
interpolateBrBG(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “BrBG” diverging color scheme represented as an RGB string.
interpolateBrBG(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “BrBG” diverging color scheme represented as an RGB string.
interpolatePiYG(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string.
interpolatePiYG(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string.
interpolatePiYG(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PiYG” diverging color scheme represented as an RGB string.
interpolatePRGn(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PRGn” diverging color scheme represented as an RGB string.
interpolatePRGn(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PRGn” diverging color scheme represented as an RGB string.
interpolatePRGn(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PRGn” diverging color scheme represented as an RGB string.
interpolatePuOr(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PuOr” diverging color scheme represented as an RGB string.
interpolatePuOr(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PuOr” diverging color scheme represented as an RGB string.
interpolatePuOr(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “PuOr” diverging color scheme represented as an RGB string.
interpolateRdBu(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdBu” diverging color scheme represented as an RGB string.
interpolateRdBu(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdBu” diverging color scheme represented as an RGB string.
interpolateRdBu(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdBu” diverging color scheme represented as an RGB string.
interpolateRdGy(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdGy” diverging color scheme represented as an RGB string.
interpolateRdGy(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdGy” diverging color scheme represented as an RGB string.
interpolateRdGy(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdGy” diverging color scheme represented as an RGB string.
interpolateRdYlBu(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdYlBu” diverging color scheme represented as an RGB string.
interpolateRdYlBu(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdYlBu” diverging color scheme represented as an RGB string.
interpolateRdYlBu(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdYlBu” diverging color scheme represented as an RGB string.
interpolateRdYlGn(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdYlGn” diverging color scheme represented as an RGB string.
interpolateRdYlGn(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdYlGn” diverging color scheme represented as an RGB string.
interpolateRdYlGn(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “RdYlGn” diverging color scheme represented as an RGB string.
interpolateSpectral(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “Spectral” diverging color scheme represented as an RGB string.
interpolateSpectral(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “Spectral” diverging color scheme represented as an RGB string.
interpolateSpectral(num t) String Diverging schemes
Given a number t in the range [0,1], returns the corresponding color from the “Spectral” diverging color scheme represented as an RGB string.